#ifndef MYGRAPHICSVIEW_H
#define MYGRAPHICSVIEW_H

#include <QGraphicsScene>
#include "Aria.h"
#include "ArNetworking.h"
#include "mygoalitem.h"

class myGraphicsScene : public QGraphicsScene
{
    Q_OBJECT
signals:

    void signal_paint_goal(myGoalItem *);
    void signal_remove_goal(myGoalItem *);


public:
    myGraphicsScene(QObject *parent = 0,ArClientBase *client=0);

    void setSendRobot(bool value);
    void setLocateRobot(bool value);

public slots:
    void wheelEvent(QGraphicsSceneWheelEvent *e);
    void mousePressEvent(QGraphicsSceneMouseEvent *e);
    void mouseReleaseEvent (QGraphicsSceneMouseEvent *e);
    void mouseMoveEvent(QGraphicsSceneMouseEvent *event);
private:
    ArClientBase *handleclient;

    ArPose *sendPose;

    myGoalItem *posSend;

    bool sendRobot;
    bool sendingRobot;

    bool locateRobot;
    bool locatingRobot;
};

#endif // MYGRAPHICSVIEW_H
